package models
{
	
	public class ModelLocator
	{
		public var btnUrl:String;
		public var tabUrl:String;
		public var submit:String;
		public var submitPreview:String;
		public var submitInfo:String;
		public var detailUrl:String;
		public var init:Boolean;
		public var currentdata:Object;
		public var fontList:Array;
		public var root:String;
		
		public var typePriceAry:Array;
		public var color:String;
		public var sizeid:String;
		private static var instance:ModelLocator;  
  
        public static function getInstance():ModelLocator  
        {  
            if(instance==null)  instance = new ModelLocator();  
            return instance;  
        }  
  																											
        public function ModelLocator()  
        {  
           if(instance!=null) throw new Error("Error: Singletons can only be instantiated via getInstance() method!");  
            ModelLocator.instance = this;  
        }  
		public function setUrl(xml:XML):void{
			this.btnUrl = xml.navigation.@url;
			this.tabUrl = xml.tab.@url;
			this.detailUrl = xml.detail.@url;
			this.submit = xml.submit.@url;
			this.submitPreview = xml.submitPreview.@url
			this.submitInfo = xml.submitInfo.@url;
			this.root = xml.root.@url;
		}
		
		
	}
}